package net.csdn.business.common.domain.request.issue;

import lombok.Data;
import net.csdn.business.common.domain.issue.IssueExt;
import net.csdn.business.common.domain.validation.groups.System;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author likun
 * @date 2022/11/21 12:33
 */
@Data
public class IssueAssignUserRequestDto implements Serializable {
    /**
     * 当前登录人
     */
    @NotBlank(message = "uid 不合法", groups = {System.class})
    private String uid;

    /**
     * {@link net.csdn.business.common.enums.UserTypeEnum}
     */
    private Integer userType;

    @NotBlank(message = "issueId 不能为空")
    @Length(min = 24, max = 24, message = "issueId 不合法")
    private String issueId;

    // @Length(min = 24, max = 24, message = "assignUser 不合法")
    private String assignUser;

    private IssueExt ext;

    private Boolean isSyncKanban = true;
}